<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>99乘法表</title>
    <style>
        ul {
            /*display: flex;*/
        }

        li {
            border: 1px solid gray;
            list-style: none;
            display: inline-block;
            padding: 10px;
            width: 50px;
            margin: 5px;
        }
    </style>
</head>
<body>
<ul>

</ul>
<script>
    const Oul = document.querySelector('ul')

    function nine() {
        for (let i = 1; i <= 9; i++) {
            for (let j = 1; j <= i; j++) {
                const node = document.createElement('li')
                node.innerText = `${j}*${i}=${i * j}`
                Oul.appendChild(node)
            }
            Oul.appendChild(document.createElement('br'))
        }
    }

    nine()
</script>
</body>
</html>
